package com.xiaoq.ar.repository;

import com.xiaoq.ar.entity.MyTreasureEntity;

import java.util.List;

/**
 * Created by chenjh on 2018/3/5.
 */
public interface MyTreasureRepository {

    boolean save(MyTreasureEntity entity);

    /**
     *
     * @param arActivityId AR 活动主键
     * @param userId 用户id
     * @return
     */
    MyTreasureEntity getByArActivityUserId(String arActivityId, String userId);

    /**
     * 更新我的打卡记录
     * @param myTreasureEntity
     * @return
     */
    boolean updateById(MyTreasureEntity myTreasureEntity);

    /**
     * 用户的轨迹
     * @param userId
     * @return
     */
    List<MyTreasureEntity> getListByUserId(String userId);

}
